<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>编辑用户</title>
</head>
<body>
<h2>编辑用户</h2>

    <form th:action="@{/UserController/users/{id}(id=${user.id})}" method="post">
    <div>
        <label for="userName">用户名称:</label>
        <input type="text" id="userName" name="userName" th:value="${user.userName}" required>
    </div>
    <div>
        <label for="description">角色名称:</label>
        <textarea id="description" name="description" th:text="${user.role}"></textarea>
    </div>
    <button type="submit">更新</button>
</form>
</body>
</html>